﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/ConfigAdmin.Master"
    AutoEventWireup="true" CodeBehind="TemplateList.aspx.cs" Inherits="Besture.UI.Admin.Content.TemplateList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="listPage">
        <!-- Begin 操作条 -->
       <%-- <div class="operateBar">
            <ul>
                <li><a href="javascript:grid.SelectRows();"><s class="icon-gou-gray"></s>全选</a></li>
                <li><a href="javascript:grid.UnselectRows();" class=""><s class="icon-cancel-gray"></s>
                    取消</a></li>
               $1$ <li>
                    <asp:LinkButton ID="lbAdd" runat="server" class="" OnClick="btnAdd_Click"><s class="icon-add-gray"></s>添加模型</asp:LinkButton>
                </li>#1#
            </ul>
        </div>--%>
        <div style="border: 2px solid #5097da; width: 90%; line-height: 30px; margin-top: 5px;
            margin-bottom: 5px; padding: 5px;">
            当前目录：<%=RootTemplate%>
            | <a href="TemplateList.aspx">返回根目录</a>
        </div>
        <!-- //End 操作条 -->
          <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="100%"
            AutoGenerateColumns="False" KeyFieldName="ID">
            <Columns>
                <cms:GridViewDataTextColumn Caption="" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <img src="/Admin/Themes/Images/<%# Eval("Icon") %>" />
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="名称" VisibleIndex="3" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" FixedStyle="Left">
                    <DataItemTemplate>
                        <a href="<%# Eval("Link") %>">
                            <%# Eval("Name") %></a>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="类型" VisibleIndex="4" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="FileType">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="大小(Byte)" VisibleIndex="4" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="Length">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataDateColumn Caption="最后修改时间" VisibleIndex="6" Width="200px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="UpdateTime">
                    <PropertiesDateEdit DisplayFormatString="{0:yyyy-MM-dd HH:mm:ss}">
                    </PropertiesDateEdit>
                </cms:GridViewDataDateColumn>
            </Columns>
        </cms:ASPxGridView>
    </div>
    <%--<div class="mainbox">
        <table>
            <tr>
                <td>
                    <cms:ASPxButton ID="btnSelectAll" runat="server" UseSubmitBehavior="False" AutoPostBack="False"
                        Text="选中全部">
                        <ClientSideEvents Click="function(s, e) { grid.SelectRows(); }" />
                    </cms:ASPxButton>
                </td>
                <td>
                    <cms:ASPxButton ID="btnUnSelectAll" runat="server" UseSubmitBehavior="False" AutoPostBack="False"
                        Text="取消全部">
                        <ClientSideEvents Click="function(s, e) { grid.UnselectRows(); }" />
                    </cms:ASPxButton>
                </td>
                <td>
                    <cms:ASPxButton ID="btnAdd" runat="server" UseSubmitBehavior="False" Text="添加" />
                </td>
            </tr>
        </table>
        <div style="border: 2px solid #5097da; width: 90%; line-height: 30px; margin-top: 5px;
            margin-bottom: 5px; padding: 5px;">
            当前目录：<%=RootTemplate%>
            | <a href="TemplateList.aspx">返回根目录</a>
        </div>
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID">
            <Columns>
                <cms:GridViewDataTextColumn Caption="" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <img src="/Admin/Themes/Images/<%# Eval("Icon") %>" />
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="名称" VisibleIndex="3" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" FixedStyle="Left">
                    <DataItemTemplate>
                        <a href="<%# Eval("Link") %>">
                            <%# Eval("Name") %></a>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="类型" VisibleIndex="4" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="FileType">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="大小(Byte)" VisibleIndex="4" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="Length">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataDateColumn Caption="最后修改时间" VisibleIndex="6" Width="200px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="UpdateTime">
                    <PropertiesDateEdit DisplayFormatString="{0:yyyy-MM-dd HH:mm:ss}">
                    </PropertiesDateEdit>
                </cms:GridViewDataDateColumn>
            </Columns>
        </cms:ASPxGridView>
    </div>--%>
    <script type="text/javascript">
        function ShowTemplate(path) {
            $.dialog({
                title: '模板编辑',
                lock: true,
                content: 'url:/Admin/Content/TemplateSet.aspx?path=' + path,
                max: true,
                min: false,
                resize: true,
                width: '1200px',
                height: '550px'
            });
        }
    </script>
</asp:Content>
